Integrand size = 31, antiderivative size = 170 \[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\frac {2 (9 a A+7 b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {10 (A b+a B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 d}+\frac {10 (A b+a B) \sqrt {\cos (c+d x)} \sin (c+d x)}{21 d}+\frac {2 (9 a A+7 b B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 (A b+a B) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {2 b B \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{9 d} \]
2/15*(9*A*a+7*B*b)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*Ellipti cE(sin(1/2*d*x+1/2*c),2^(1/2))/d+10/21*(A*b+B*a)*(cos(1/2*d*x+1/2*c)^2)^(1 /2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/45*(9*A*a +7*B*b)*cos(d*x+c)^(3/2)*sin(d*x+c)/d+2/7*(A*b+B*a)*cos(d*x+c)^(5/2)*sin(d *x+c)/d+2/9*b*B*cos(d*x+c)^(7/2)*sin(d*x+c)/d+10/21*(A*b+B*a)*sin(d*x+c)*c os(d*x+c)^(1/2)/d
Time = 1.72 (sec) , antiderivative size = 125, normalized size of antiderivative = 0.74 \[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\frac {84 (9 a A+7 b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+300 (A b+a B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sqrt {\cos (c+d x)} (7 (36 a A+43 b B) \cos (c+d x)+5 (78 A b+78 a B+18 (A b+a B) \cos (2 (c+d x))+7 b B \cos (3 (c+d x)))) \sin (c+d x)}{630 d} \]
(84*(9*a*A + 7*b*B)*EllipticE[(c + d*x)/2, 2] + 300*(A*b + a*B)*EllipticF[ (c + d*x)/2, 2] + Sqrt[Cos[c + d*x]]*(7*(36*a*A + 43*b*B)*Cos[c + d*x] + 5 *(78*A*b + 78*a*B + 18*(A*b + a*B)*Cos[2*(c + d*x)] + 7*b*B*Cos[3*(c + d*x )]))*Sin[c + d*x])/(630*d)
Time = 0.77 (sec) , antiderivative size = 162, normalized size of antiderivative = 0.95, number of steps used = 14, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.452, Rules used = {3042, 3447, 3042, 3502, 27, 3042, 3227, 3042, 3115, 3042, 3115, 3042, 3119, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right ) \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 3447 |
\(\displaystyle \int \cos ^{\frac {5}{2}}(c+d x) \left ((a B+A b) \cos (c+d x)+a A+b B \cos ^2(c+d x)\right )dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left ((a B+A b) \sin \left (c+d x+\frac {\pi }{2}\right )+a A+b B \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {2}{9} \int \frac {1}{2} \cos ^{\frac {5}{2}}(c+d x) (9 a A+7 b B+9 (A b+a B) \cos (c+d x))dx+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{9} \int \cos ^{\frac {5}{2}}(c+d x) (9 a A+7 b B+9 (A b+a B) \cos (c+d x))dx+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (9 a A+7 b B+9 (A b+a B) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {1}{9} \left ((9 a A+7 b B) \int \cos ^{\frac {5}{2}}(c+d x)dx+9 (a B+A b) \int \cos ^{\frac {7}{2}}(c+d x)dx\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left ((9 a A+7 b B) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}dx+9 (a B+A b) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{7/2}dx\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{9} \left ((9 a A+7 b B) \left (\frac {3}{5} \int \sqrt {\cos (c+d x)}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (a B+A b) \left (\frac {5}{7} \int \cos ^{\frac {3}{2}}(c+d x)dx+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left ((9 a A+7 b B) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (a B+A b) \left (\frac {5}{7} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2}dx+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{9} \left (9 (a B+A b) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a A+7 b B) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left (9 (a B+A b) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a A+7 b B) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {1}{9} \left (9 (a B+A b) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a A+7 b B) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{9} \left (9 (a B+A b) \left (\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}+\frac {5}{7} \left (\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )\right )+(9 a A+7 b B) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b B \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
(2*b*B*Cos[c + d*x]^(7/2)*Sin[c + d*x])/(9*d) + ((9*a*A + 7*b*B)*((6*Ellip ticE[(c + d*x)/2, 2])/(5*d) + (2*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(5*d)) + 9*(A*b + a*B)*((2*Cos[c + d*x]^(5/2)*Sin[c + d*x])/(7*d) + (5*((2*Ellipti cF[(c + d*x)/2, 2])/(3*d) + (2*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*d)))/7) )/9
3.4.45.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Int[(a + b*Sin[e + f*x])^m*(A*c + (B*c + A*d)*Sin[e + f*x] + B*d*Sin[e + f*x]^2), x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(450\) vs. \(2(202)=404\).
Time = 17.60 (sec) , antiderivative size = 451, normalized size of antiderivative = 2.65
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-1120 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (720 A b +720 B a +2240 B b \right ) \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-504 a A -1080 A b -1080 B a -2072 B b \right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (504 a A +840 A b +840 B a +952 B b \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-126 a A -240 A b -240 B a -168 B b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+75 A b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-189 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a +75 B a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-147 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b \right )}{315 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(451\) |
parts | \(-\frac {2 \left (A b +B a \right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (48 \left (\cos ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-120 \left (\cos ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+128 \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-72 \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+16 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{21 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}-\frac {2 a A \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-8 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{5 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}-\frac {2 B b \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (160 \left (\cos ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-480 \left (\cos ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+616 \left (\cos ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-432 \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+160 \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-21 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-24 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{45 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(623\) |
-2/315*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-1120*B*co s(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^10*b+(720*A*b+720*B*a+2240*B*b)*sin(1/ 2*d*x+1/2*c)^8*cos(1/2*d*x+1/2*c)+(-504*A*a-1080*A*b-1080*B*a-2072*B*b)*si n(1/2*d*x+1/2*c)^6*cos(1/2*d*x+1/2*c)+(504*A*a+840*A*b+840*B*a+952*B*b)*si n(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-126*A*a-240*A*b-240*B*a-168*B*b)*s in(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)+75*A*b*(sin(1/2*d*x+1/2*c)^2)^(1/2) *(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-18 9*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*Elliptic E(cos(1/2*d*x+1/2*c),2^(1/2))*a+75*B*a*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin (1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*B*(si n(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1 /2*d*x+1/2*c),2^(1/2))*b)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^( 1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 211, normalized size of antiderivative = 1.24 \[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\frac {2 \, {\left (35 \, B b \cos \left (d x + c\right )^{3} + 45 \, {\left (B a + A b\right )} \cos \left (d x + c\right )^{2} + 75 \, B a + 75 \, A b + 7 \, {\left (9 \, A a + 7 \, B b\right )} \cos \left (d x + c\right )\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 75 \, \sqrt {2} {\left (i \, B a + i \, A b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 75 \, \sqrt {2} {\left (-i \, B a - i \, A b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 \, \sqrt {2} {\left (-9 i \, A a - 7 i \, B b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 21 \, \sqrt {2} {\left (9 i \, A a + 7 i \, B b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{315 \, d} \]
1/315*(2*(35*B*b*cos(d*x + c)^3 + 45*(B*a + A*b)*cos(d*x + c)^2 + 75*B*a + 75*A*b + 7*(9*A*a + 7*B*b)*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - 75*sqrt(2)*(I*B*a + I*A*b)*weierstrassPInverse(-4, 0, cos(d*x + c) + I*s in(d*x + c)) - 75*sqrt(2)*(-I*B*a - I*A*b)*weierstrassPInverse(-4, 0, cos( d*x + c) - I*sin(d*x + c)) - 21*sqrt(2)*(-9*I*A*a - 7*I*B*b)*weierstrassZe ta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) - 21* sqrt(2)*(9*I*A*a + 7*I*B*b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/d
Timed out. \[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\text {Timed out} \]
\[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\int { {\left (B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
\[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=\int { {\left (B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
Time = 1.51 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.04 \[ \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (A+B \cos (c+d x)) \, dx=-\frac {2\,A\,a\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,A\,b\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,B\,a\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,B\,b\,{\cos \left (c+d\,x\right )}^{11/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {11}{4};\ \frac {15}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{11\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
- (2*A*a*cos(c + d*x)^(7/2)*sin(c + d*x)*hypergeom([1/2, 7/4], 11/4, cos(c + d*x)^2))/(7*d*(sin(c + d*x)^2)^(1/2)) - (2*A*b*cos(c + d*x)^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/4, cos(c + d*x)^2))/(9*d*(sin(c + d*x)^2) ^(1/2)) - (2*B*a*cos(c + d*x)^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/ 4, cos(c + d*x)^2))/(9*d*(sin(c + d*x)^2)^(1/2)) - (2*B*b*cos(c + d*x)^(11 /2)*sin(c + d*x)*hypergeom([1/2, 11/4], 15/4, cos(c + d*x)^2))/(11*d*(sin( c + d*x)^2)^(1/2))